package game.objects.actions 
{
	import assets.Assets;
	import game.core.Player;
	import game.core.races.DwarfRace;
	import game.objects.texts.IncomeText;
	/**
	 * ...
	 * @author Sulus Ltd.
	 */
	public class GoldIncomeAction extends Action
	{
		private var amount:int;
		
		public function GoldIncomeAction(amount:int) 
		{
			this.amount = amount;
			
			
		}
		
		override public function Execute():void 
		{
			var player:Player = building.player;
			player.AddStats(DwarfRace.GOLD_RESOURCE, amount);
			
			building.world.add(new IncomeText(building.x+16, building.y+16, amount,Assets.ICON_GOLD));
		}
		
	}

}